package com.banyiyi.simple.pattern.strategy;

/**
 * @ClassName Client
 * @Description TODO
 * @Author yangwm
 * @Date 2023/2/17 10:25
 * @Version 1.0
 */
public class Client {

    public static void main(String[] args) {
        BehaviorContext context = new BehaviorContext(new LittlePenguin());
        context.everyday();
        System.out.println("++++++++++++++++++++++++++++++++++++");
        context.setPenguin(new MiddlePenguin());
        context.everyday();
        System.out.println("++++++++++++++++++++++++++++++++++++");
        context.setPenguin(new BigPenguin());
        context.everyday();
        System.out.println("++++++++++++++++++++++++++++++++++++");
    }
}
